﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LMGL.ascx.cs" Inherits="XYTXL.Web.View.UCMangForm.LMGL" %>
<link href="/View/JS/umeditor122/themes/default/css/umeditor.css" type="text/css" rel="stylesheet" />
<script src="/View/JS/umeditor122/umeditor.js" type="text/javascript" charset="utf-8"></script>
<script src="/View/JS/umeditor122/umeditor.config.js" type="text/javascript" charset="utf-8"></script>

<div class="row">
    <div class="col-xs-8">
        <div class="form-group">
            <label>编号</label>
            <asp:TextBox ID="txtNum" runat="server" CssClass="form-control validate[required]"></asp:TextBox>
        </div>
        <div class="form-group">
            <label>名称</label>
            <asp:TextBox ID="txtName" runat="server" CssClass="form-control validate[required]"></asp:TextBox>
        </div>
        <div class="form-group">
            <label>所属</label>
            <asp:DropDownList ID="ddlTopID" runat="server" CssClass="form-control validate[required]"  ></asp:DropDownList>
        </div>
        <div class="form-group">
            <label>类型</label>
            <asp:DropDownList ID="ddlType" runat="server" CssClass="form-control validate[required] ddlType"  >
                <asp:ListItem Value="1">文字列表</asp:ListItem>
                <asp:ListItem Value="2">图片列表</asp:ListItem>
                <asp:ListItem Value="3">显示内容</asp:ListItem>
                <asp:ListItem Value="4">外部引用</asp:ListItem>
            </asp:DropDownList>
        </div>
        <div class="form-group txtLink hide">
            <label>链接</label>
            <asp:TextBox ID="txtLink" runat="server" CssClass="form-control "></asp:TextBox>
        </div>
        <div class="form-group txtDetails hide">
            <label>内容</label>
            <asp:TextBox ID="txtDetails" runat="server" TextMode="MultiLine" CssClass="form-control UEEDIT"></asp:TextBox>
        </div>
        <div class="form-group txtFLDesp" style="display:none">
            <label>管理员</label>
            <asp:TextBox ID="txtAuthUser" runat="server"  CssClass="form-control getPeoples"></asp:TextBox>
        </div>

    </div>
    <div  class="col-xs-4">

    </div>
</div>

<script>
    $(function () {
        $(".ddlType").change(function () {
            if ($(this).val() == "4") {
                $(".txtLink").removeClass("hide");
                $(".txtDetails").addClass('hide');
            } else if ($(this).val() == "3") {
                $(".txtDetails").removeClass("hide");
                $(".txtLink").addClass('hide');
            } else{
                $(".txtLink").addClass('hide');
                $(".txtDetails").addClass('hide');
            }
        })
        $(".ddlType").trigger("change");
    });
</script>